package com.yc.repay.controller;

import com.yc.pay.api.resp.YcPayNotifyData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 接收粤财支付的异步回调
 */
@RestController
@RequestMapping("/repay")
public class YcPayNotifyController {


    @RequestMapping(value = "/notify",method = RequestMethod.POST)
    public String rec(@RequestBody YcPayNotifyData ycPayNotifyData){

        //更新还款的状态


        return "success";
    }
}
